<?php

$arr = ['car'=>100,'dog'=>200];


extract(var_array)

$car;

$dog;